package com.szh.cloud.login.entity;

import com.szh.cloud.mybatis.entity.PtMenuEntity;

import java.io.Serializable;
import java.util.LinkedList;
import java.util.List;

public class MenuLevelEntity implements Serializable {
    private String menuId;
    private String menuName;
    private String parentId;
    private String menuUrl;
    private String menuIcon;

    private List<MenuLevelEntity> childList = new LinkedList<>();

    public MenuLevelEntity(PtMenuEntity ptMenuEntity){
        this.menuId = ptMenuEntity.getMenuId();
        this.menuName = ptMenuEntity.getMenuName();
        this.parentId = ptMenuEntity.getParentId();
        this.menuUrl = ptMenuEntity.getMenuUrl();
        this.menuIcon = ptMenuEntity.getMenuIcon();


    }

    public String getMenuId() {
        return menuId;
    }

    public void setMenuId(String menuId) {
        this.menuId = menuId;
    }

    public String getMenuName() {
        return menuName;
    }

    public void setMenuName(String menuName) {
        this.menuName = menuName;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getMenuUrl() {
        return menuUrl;
    }

    public void setMenuUrl(String menuUrl) {
        this.menuUrl = menuUrl;
    }

    public String getMenuIcon() {
        return menuIcon;
    }

    public void setMenuIcon(String menuIcon) {
        this.menuIcon = menuIcon;
    }

    public List<MenuLevelEntity> getChildList() {
        return childList;
    }

    public void setChildList(List<MenuLevelEntity> childList) {
        this.childList = childList;
    }

    public void addChildList(MenuLevelEntity item) {
        this.childList.add(item);
    }
}
